import java.math.BigInteger;
import java.util.Scanner;

/**
 * 超长正整数相加
 */
public class LongestPositiveNumber {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String num1 = scanner.next();
            String num2 = scanner.next();
            BigInteger bigInteger1 = new BigInteger(num1);
            BigInteger bigInteger2 = new BigInteger(num2);
            BigInteger add = bigInteger1.add(bigInteger2);
            System.out.println(add.toString());
        }
    }
}
